package com.yu.footballpromotionliveadmin.dao;

import com.yu.footballpromotionliveadmin.page.PageInfo;
import com.yu.footballpromotionliveadmin.pojo.EventRecords;

import java.util.List;

public interface EventRecordsDao {
    public List<EventRecords> getAllCompetitionRecors()  throws Exception;
    public EventRecords  getCompetitionRecorByUno(String erno)  throws Exception;
    public List<EventRecords> getCompetitionRecorsByPage(PageInfo pageInfo);
    //增删改的返回值都是整数
    Integer deleteCompetitionRecor(String erno)  throws Exception;
    Integer updateCompetitionRecor(EventRecords eventRecords)  throws Exception;
    Integer addCompetitionRecorByUno(EventRecords eventRecords)  throws Exception;

    EventRecords getCompetitionRecorsWithOrders(String erno)throws Exception;

    EventRecords getAccountByAccountName(String erno)throws Exception;
}
